/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lesson3.com.demo.ser;


public class Animal {
    private int legCount;
    
    protected Animal(){
        // in here solely so children can:
        //  A) Implement serializeable 
        //  B) Deserialization of children is successful
        System.out.println("no-arg constructor for Animal called");
    }
    
    // sole constructor
    public Animal(int legCount){
        this.legCount=legCount;
        System.out.println("int constructor for Animal called");
    }

    public int getLegCount() {
        return legCount;
    }

    protected void setLegCount(int legCount) {
        this.legCount = legCount;
    }
    
    

}
